package system;

import java.io.FileWriter;
import java.io.IOException;
import java.time.LocalDateTime;

public class JobLogRecorder {
    public void recordLog(String log) {
        try (FileWriter writer = new FileWriter("job_log.txt", true)) {
            writer.write(LocalDateTime.now() + " - " + log + "\n");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}